define(function (require) {
    var app = require('app');
	//配置路由
    app.config(function ($stateProvider, $urlRouterProvider) {
        
        $stateProvider.state('security_user',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/user/user.html',
                    controllerUrl:  'module/security/user/user',
                    controller:     'userCtrl'
                }
            }
        });

        $stateProvider.state('security_role',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/role.html',
                    controllerUrl:  'module/security/role/role',
                    controller:     'roleCtrl'
                }
            }
        });
        $stateProvider.state('security_roleentrust',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/role/roleentrust.html'
                }
            }
        });

        $stateProvider.state('security_organization',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/organization.html'
                }
            }
        });
        
        $stateProvider.state('security_administrative',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/organize/administrative.html'
                }
            }
        });

         $stateProvider.state('security_department',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/department.html',
                    controllerUrl:  'module/security/organize/department',
                    controller:     'depCtrl'
                }
            }
        });

         $stateProvider.state('security_operatingPost',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/operatingPost.html',
                    controllerUrl:  'module/security/organize/operatingPost',
                    controller:     'operatingPostCtrl'
                }
            }
        });

         $stateProvider.state('security_position',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/position.html',
                    controllerUrl:  'module/security/organize/position',
                    controller:     'positionCtrl'
                }
            }
        });

         $stateProvider.state('security_workingGroup',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/organize/workingGroup.html',
                    controllerUrl:  'module/security/organize/workingGroup',
                    controller:     'workingGroupCtrl'
                }
            }
        });

        $stateProvider.state('security_menujurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/menu.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_datajurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/data.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_mapextentjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/security/jurisdiction/mapextent.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });
        $stateProvider.state('security_maplayerjurisdiction',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/maplayer.html',
                    controllerUrl:  'module/security/jurisdiction/jurisdiction',
                    controller:     'jurisdictionCtrl'
                }
            }
        });

        $stateProvider.state('security_service',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/jurisdiction/service.html',
                    controllerUrl:  'module/security/jurisdiction/service',
                    controller:     'serviceCtrl'
                }
            }
        });

        $stateProvider.state('signin_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/signin_logging.html'
                }
            }
        });

        $stateProvider.state('visit_logging',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/security/log/visit_logging.html'
                }
            }
        });

        $stateProvider.state('form_dic',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/dictionarys/dictionarys.html',
                    controllerUrl:  'module/form/dictionarys/dictionarys',
                    controller:     'dictionarysCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadata.html',
                    controllerUrl:  'module/form/metadata/metadata',
                    controller:     'metadataCtrl'
                }
            }
        });

        $stateProvider.state('form_metadata_name',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/metadata/metadataname.html'
                }
            }
        });

        $stateProvider.state('form_dic_name',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/form/dictionarys/dictionarynames.html'
                }
            }
        });

        $stateProvider.state('gis_layerconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/layerconfig/layerconfig.html'
                }
            }
        });
        $stateProvider.state('gis_analysisconfig',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/gis/analysisconfig/analysisconfig.html',
                    controllerUrl:  'module/gis/analysisconfig/analysisconfig',
                    controller:     'analysisConfigCtrl'
                }
            }
        });
        $stateProvider.state('gis_task',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gather/gistask.html'
                }
            }
        });
        $stateProvider.state('gis_notice',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gather/gisnotice.html'
                }
            }
        });
        $stateProvider.state('gis_basemap', {
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/gis/basemap/gisbasemap.html',
                    controllerUrl:  'module/gis/basemap/gisbasemap',
                    controller:     'baseMapCtrl'
                }
            }
        });
        $stateProvider.state('gis_dataimport',{
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl:    'module/gis/data/import.html',
                    controllerUrl:  'module/gis/data/import',
                    controller:     'gis_importCtrl'
                }
            }
        });
        $stateProvider.state('gis_data', {
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/datadefinition/definition.html'
                }
            }
        });
        $stateProvider.state('gis_project', {
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/project/gisproject.html',
                    controllerUrl: 'module/gis/project/gisproject',
                    controller: 'projectCtrl'
                }
            }
        });
        $stateProvider.state('gis_datasyn', {
            views: {
                'model': {
                    template: ''
                },
                'panel': {
                    templateUrl: 'module/gis/datasyn/gisdatasyn.html'
                }
            }
        });

        $stateProvider.state('arcgis_attribute',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/attribute.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_space',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/space.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_find',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/find.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_identify',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/search/identify.html'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_book',{
            views: {
                'model': {
                    templateUrl:    'module/arcgis/locator/book.html',
                    controllerUrl:  'module/arcgis/locator/book',
                    controller:     'bookCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('arcgis_coordinate',{
            views: {
                'model': {
                    templateUrl: 'module/arcgis/locator/coordinate.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_gps',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/gps.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('analysis_excel',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/excel.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_cad',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/cad.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_select',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/select.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        
        $stateProvider.state('analysis_draw',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/draw.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('analysis_shape',{
            views: {
                'model': {
                    templateUrl: 'module/analysis/shape.html',
                    controllerUrl:  'module/analysis/analysis',
                    controller:'analysis_Ctrl'
                },
                'panel': {
                    template: ''
                }
            }
        });

        $stateProvider.state('ldzy',{
            views: {
                'model': {
                    templateUrl: 'module/gather/zy/ldzy.html'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('wfjc',{
            views: {
                'model': {
                    templateUrl:    'module/gather/jc/wfjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('zljc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/zljc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('fyjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/fyjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('cfjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/cfjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('zzjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/zzjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('jhtzjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/jhtzjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('hfjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/hfjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('bbhjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/bbhjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('qtjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/qtjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('dzwbhjc',{
            views: {
                'model': {
                    templateUrl: 'module/gather/jc/dzwbhjc.html',
                    controllerUrl:  'module/gather/jc/jc',
                    controller:     'jcCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
        $stateProvider.state('gather_identify',{
            views: {
                'model': {
                    templateUrl:    'module/gather/identify.html',
                    controllerUrl:  'module/gather/identify',
                    controller:     'identityCtrl'
                },
                'panel': {
                    template: ''
                }
            }
        });
    })
});